using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ComponentsService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: ComponentsService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ComponentsService : IComponentsService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Component_ID</para>
		/// <para>Output: ComponentsEntity</para>
		///</summary>
		public ComponentsEntity SelectOne(int Component_ID){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.SelectOne(Component_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ComponentsEntity</para>
		///</summary>
		public List<ComponentsEntity> SelectAll(){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ComponentsEntity</para>
		///</summary>
		public List<ComponentsEntity> SelectAllFilter(string strFilter){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: ComponentsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ComponentsEntity o){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: ComponentsEntity</para>
		/// <para>Output: ComponentsEntity</para>
		///</summary>
		public ComponentsEntity SaveRet(ComponentsEntity o){
			ComponentsDAO dao = new ComponentsDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ComponentsEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ComponentsEntity> list){
			ComponentsDAO dao = new ComponentsDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ComponentsEntity</para>
		/// <para>Output: List of ComponentsEntity</para>
		///</summary>
		public List<ComponentsEntity> SaveListRet(List<ComponentsEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: ComponentsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ComponentsEntity o){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ComponentsEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ComponentsEntity> list){
			ComponentsDAO dao = new ComponentsDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateComponentName</para>
		/// <para>Input: NewComponentName,Component_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateComponentName(string NewComponentName,int Component_ID){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.UpdateComponentName(NewComponentName,Component_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSourceCode</para>
		/// <para>Input: NewSourceCode,Component_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSourceCode(string NewSourceCode,int Component_ID){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.UpdateSourceCode(NewSourceCode,Component_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateContent</para>
		/// <para>Input: NewContent,Component_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateContent(Byte[] NewContent,int Component_ID){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.UpdateContent(NewContent,Component_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ComponentsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ComponentsEntity o){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Component_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Component_ID){
			ComponentsDAO dao = new ComponentsDAO();
			return dao.DeleteByID(Component_ID);
		}
		#endregion

		#region Select,delete by Component_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ComponentsWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

